package com.dou.yygh.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dou.yygh.model.user.UserInfo;
import com.dou.yygh.vo.user.LoginVo;
import com.dou.yygh.vo.user.UserAuthVo;
import com.dou.yygh.vo.user.UserInfoQueryVo;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created with IntelliJ IDEA 2021.1 x64
 *
 * @Author: 窦义超
 * @Date: 2021/09/2021/9/27/13:14
 * @Description:
 */
@Service
public interface UserInfoService extends IService<UserInfo> {
    Map<String, Object> loginUser(LoginVo loginVo);
    //用户认证提交
    void userAuth(Long userId, UserAuthVo userAuthVo);
    //用户列表
    IPage<UserInfo> selectPage(Page<UserInfo> pageParam, UserInfoQueryVo userInfoQueryVo);
    //用户锁定
    void lock(long userId, Integer status);
    //用户详情
    Map<String, Object> show(Long userId);
    //认证审批
    void approval(long userId, Integer authStatus);
}
